<% form_for :vote, :url => { :controller=> :vote, :action => :create } do |form| %>
<p><%= form.radio_button :vote, 1 %> Aye</p>
<p><%= form.radio_button :vote, 0 %> Nay</p>
<p><%= form.hidden_field :voteable_type, :value=> document.class.to_s %></p>
<p><%= form.hidden_field :voteable_id, :value=> document.id %></p>
<p><%= submit_tag %></p>
<% end %>